-
Notifications
You must be signed in to change notification settings - Fork 132
chore(x-goog-spanner-request-id): set span attribute x_goog_spanner_request_id #3905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore(x-goog-spanner-request-id): set span attribute x_goog_spanner_request_id #3905
Conversation
76de4a6
to
9effc60
Compare
3ec60f7
to
93b9ef8
Compare
93b9ef8
to
cb62c7d
Compare
02525ea
to
b237b96
Compare
@sakthivelmanii @surbhigarg92 @olavloite @rahul2393 kindly help me run the bots please. Also this PR can't run locally due to the mismatch in Java versions hence the only option is having it run on these bots. |
b237b96
to
593fae9
Compare
…equest_id This sets the span attribute x_goog_spanner_request_id so as to enable correlation with distributed tracing with OpenTelemetry. Updates googleapis#3537
593fae9
to
625c7dd
Compare
@sakthivelmanii @rahul2393 kindly help run the bots. |
@@ -174,6 +175,10 @@ private void processHeader( | |||
} | |||
if (span != null) { | |||
span.setAttribute("gfe_latency", String.valueOf(gfeLatency)); | |||
String reqId = XGoogSpannerRequestId.getRequestIdFromMetadata(metadata); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We encountered an oddity that the Java Spanner client tests for OpenTelemetry only work for certain versions of Java as @olavloite mentioned in our group, so even testing anything requires y'all to help me run the bots /cc @tharoldD to help out with the updates.
This sets the span attribute x_goog_spanner_request_id so as to enable correlation with distributed tracing with OpenTelemetry.
Updates #3537